From: David Härdeman Date: Sat, 4 Oct 2025 17:51:44 +0000 (+0200) Subject: ubus: improve correspondence between DHCPv[46] X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=3b3a3336470f285db2865e6c5b6fd9c974b88228;p=project%2Fodhcpd.git ubus: improve correspondence between DHCPv[46] The same parameter is called "accept-reconf-nonce" in the "ipv4leases" case and "accept-reconf" in the "ipv6leases". I couldn't find anything in the OpenWrt trees which depended on either naming, but renaming the IPv4 case seems to be the safer bet since it is not part of the standard installation. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/267 Signed-off-by: Álvaro Fernández Rojas --- diff --git a/src/ubus.c b/src/ubus.c index 13a74cc..5c4a99f 100644 --- a/src/ubus.c +++ b/src/ubus.c @@ -49,7 +49,7 @@ static int handle_dhcpv4_leases(struct ubus_context *ctx, _unused struct ubus_ob blobmsg_add_string_buffer(&b); blobmsg_add_string(&b, "hostname", (c->hostname) ? c->hostname : ""); - blobmsg_add_u8(&b, "accept-reconf-nonce", c->accept_fr_nonce); + blobmsg_add_u8(&b, "accept-reconf", c->accept_fr_nonce); if (c->reqopts_len > 0) { buf = blobmsg_alloc_string_buffer(&b, "reqopts", c->reqopts_len * 4 + 1);